estimating partial derivatives